package com.satis.compose.get.example.pages

import androidx.compose.foundation.lazy.LazyColumn
import androidx.compose.material.Button
import androidx.compose.material.Text
import androidx.compose.runtime.Composable
import androidx.compose.ui.Alignment
import androidx.compose.ui.graphics.Color
import com.satis.compose.get.annotation.PageRoute
import com.satis.compose.get.annotation.Param
import com.satis.compose.get.widget.GetPage
import com.satis.compose.get.widget.GetTopAppBar

/**
 * @author sunshaobei on 2023/3/29
 */
@Composable
@PageRoute(route = "/app/button")
fun ButtonPage(@Param(key = "ttt") key:String) {
    GetPage(
        topBar = {
            GetTopAppBar(title = { Text(text = key, color = Color.White)})
        }
    ) {
        LazyColumn(horizontalAlignment = Alignment.CenterHorizontally){
            items(100){
                Button(onClick = {}) {
                    Text(text = "系统按钮")
                }
            }
        }
    }
}